package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.corpcredit.webapp.action.BasePage;
import com.corpcredit.model.Jbqk;
import com.corpcredit.model.Ygzc;
import com.corpcredit.model.Zygd;
import com.corpcredit.service.GenericManager;
import com.corpcredit.service.LookupManager;

public class ZygdList extends BasePage implements Serializable {
    private GenericManager<Zygd, Long> zygdManager;
    private Jbqk jbqk;
    private LookupManager lookupManager;
	public void setLookupManager(LookupManager lookupManager)
	{
		this.lookupManager=lookupManager;
	}
	public void setJbqk(Jbqk jbqk)
	{
		this.jbqk=jbqk;
	}
    public void setZygdManager(GenericManager<Zygd, Long> zygdManager) {
        this.zygdManager = zygdManager;
    }

    public ZygdList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getZygds() {
       // return sort(zygdManager.getAll());
    	return sort(lookupManager.findAllByJbqkID(Zygd.class, jbqk.getId()));
    }
}

